$(function () {
    var treedata ;
    $.ajax({
        type:"post",
        url:"/bokeController/getParentFile",
        dataType:"json",
        success:function(data){
            treedata = data;

            //初始化树形结构
            $('#treeview6').treeview({
                color: "#428bca",
                showTags: true,
                data: treedata
            });

        }

    });

    var defaultData = [
        {
            text: 'Parent 1',
            href: '#parent1',
            tags: ['4']

        },
        {
            text: 'Parent 2',
            href: '#parent2',
            tags: ['0']
        },
        {
            text: 'Parent 3',
            href: '#parent3',
            tags: ['0']
        },
        {
            text: 'Parent 4',
            href: '#parent4',
            tags: ['0']
        },
        {
            text: 'Parent 5',
            href: '#parent5'  ,
            tags: ['0']
        }
    ];



});


